package com.ihrm.employee.service;

import com.ihrm.domain.employee.EmployeeArchive;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author 小伟
 * @version V1.0
 * @Package com.ihrm.employee.service
 * @date 2020/12/22 22:52
 * @Copyright © 2020-2021 郑州恒星科技有限责任公司
 * 月度员工归档业务接口
 */
public interface ArchiveService {
    /**
     * 保存员工信息
     * @param archive 员工信息
     */
    void save(EmployeeArchive archive);

    EmployeeArchive findLast(String companyId, String month);

    List<EmployeeArchive> findAll(Integer page, Integer pagesize, String year, String companyId);

    Long countAll(String year, String companyId);

    Page<EmployeeArchive> findSearch(Map<String, Object> map, int page, int size);
}
